package com.guice.impl;

import cn.web.Annotation.Transaction;

import com.google.inject.Singleton;
import com.guice.HelloGuice;

@Singleton
public class HelloGuiceImpl implements HelloGuice {
	@Transaction
	public void sayHello() {
		System.out.println(String.format("[%s#%d] execute %s at %d", this.getClass().getSimpleName(),
				 hashCode(), "sayHello", System.nanoTime())
				);
	}
}
